import request from "../common/request";

/**
 * 获取资产列表
 * address
*/
export function getTokenList(address=''){
    return request({
      url: 'TrySome/getAllBlance?address='+ address,
      methods: 'GET',
	  //baseUrl: url,
    })
}

/**
 * 获取单个资产
 * address
*/
export function getTokenBalance(address='',token='chb'){
    return request({
      url: 'TrySome/getTokenBalance?address='+ address+'&token='+token,
      methods: 'GET',
	  //baseUrl: url,
	  useDefaultWallet:false,
    })
}

/**
 * 获取单个资产的交易记录
 * address
*/
export function getTokenHistoryErc(token='chb'){
    return request({
      url: 'TrySome/getTokenHistoryErc20?token='+token,
      methods: 'GET',
    })
}

/* 仅仅用来测试接口通不通 */
export function community(){
	return request({
		url: 'api/pool/getCommunityData',
		methods: 'GET',
		//baseUrl: url
	})
}